package com.liveinstars.im.endpoint;

import com.liveinstars.im.core.service.FansService;
import com.liveinstars.api.im.FansApi;
import com.onepiece.shipelves.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: zhouze
 * @date: 2020/4/13
 */
@RestController
public class FansEndpoint implements FansApi {

    @Autowired
    private FansService fansService;

    @Override
    public Result<Boolean> isFans(Long userId, Long fansId) {
        Result<Boolean> result = new Result<>();
        boolean booleanResult = fansService.isFans(userId, fansId);
        result.setData(booleanResult);
        return result;
    }
}
